function getUsername(){
	  $.ajax({
			type : "POST",
			url : "./XtAction/getUsername.do",
			data : {
			//id:id_array.join("','")
			},
			dataType : "json",
			// jsonp:'jsonpCallback',
			success : function(data) {
			//shouye();
			if(data.returnCode=="0"){
				$("*[class='header-right']").append(' <span  style="color:white;float: right;width:50px;margin-top:5px;">'+data.username+'</span> ');
				//alert(data.username);
			}else{
				window.location.href="signin.html";
			}
			}
			});
}

$(".glyphicon-log-out").parent().parent().on('click','',function(){
	 $.ajax({
			type : "POST",
			url : "./XtAction/logout.do",
			data : {
			//id:id_array.join("','")
			},
			dataType : "json",
			// jsonp:'jsonpCallback',
			success : function(data) {
			//shouye();
			if(data.returnCode=="0"){
				//$("*[class='header-right']").append(' <span  style="color:white;float: right;width:50px;margin-top:5px;">'+data.username+'</span> ');
				//alert(data.username);
				
				window.location.href="signin.html";
			}else{
				//window.location.href="signin.html";
			}
			}
			});
})